import request from "@/utils/request";

export function goodsoffer_index(params) {
  return request({
    url: "/goodsoffer/index",
    method: "get",
    params
  });
}

export function sku_changeField(data) {
  return request({
    url: "/sku/changeField",
    method: "post",
    data: data
  });
}

export function goodsoffer_offer(data) {
  return request({
    url: "/goodsoffer/offer",
    method: "post",
    data: data
  });
}

export function goodsoffer_reset(data) {
  return request({
    url: "/goodsoffer/reset",
    method: "post",
    data: data
  });
}

export function offerlog_index(params) {
  return request({
    url: "/offerlog/index",
    method: "get",
    params
  });
}

// 分组信息
export function group_info(params) {
  return request({
    url: "/import/import_group",
    method: "post",
    params
  });
}

/* 分组报价----导出 */
export function export_group_price(data) {
  return request({
    url: "/export/groub_price",
    method: "post",
    responseType: "blob",
    data: data
  });
}

// 删除分组报价
export function goodsoffer_deletePrice(params) {
  return request({
    url: "/goodsoffer/deletePrice",
    method: "post",
    params
  });
}

/* 分组报价-----分类报价 */
export function goodsCategoryOffer_index(params) {
  return request({
    url: "/goodsCategoryOffer/index",
    method: "get",
    params
  });
}

export function goodsCategoryOffer_add(params) {
  return request({
    url: "/goodsCategoryOffer/add",
    method: "post",
    params
  });
}
export function goodsCategoryOffer_edit(params) {
  return request({
    url: "/goodsCategoryOffer/edit",
    method: "post",
    params
  });
}

export function goodsCategoryOffer_delete(params) {
  return request({
    url: "/goodsCategoryOffer/delete",
    method: "post",
    params
  });
}
